package com.sun.test;

import de.codecentric.boot.admin.server.config.EnableAdminServer;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.servers.Server;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 项目启动类
 */
@EnableAdminServer
@SpringBootApplication
@MapperScan("com.sun.test.dao")
@EnableScheduling
@Slf4j
@OpenAPIDefinition(
        servers = {@Server(url = "/",description = "SpringBootTest接口文档")}
)
public class SpringBootTestApplication {

    public static void main(String[] args) {
        log.info("项目启动----->");
        SpringApplication.run(SpringBootTestApplication.class, args);
    }

}
